﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;


namespace Instagram_Desktop.UserControls
{
    /// <summary>
    /// Interaction logic for Post.xaml
    /// </summary>
    public partial class Post : UserControl
    {
        public Post()
        {
            InitializeComponent();
        }

        public ImageSource PostSource
        {
            get => (ImageSource)GetValue(PostSourceProperty);
            set => SetValue(PostSourceProperty, value);
        }

        public static readonly DependencyProperty PostSourceProperty = DependencyProperty.Register("PostSource", typeof(ImageSource), typeof(Post));


        public ImageSource ProfileSource
        {
            get => (ImageSource)GetValue(ProfileSourceProperty);
            set => SetValue(ProfileSourceProperty, value);
        }

        public static readonly DependencyProperty ProfileSourceProperty = DependencyProperty.Register("ProfileSource", typeof(ImageSource), typeof(Post));


        public string ProfileName
        {
            get => (string)GetValue(ProfileNameProperty);
            set => SetValue(ProfileNameProperty, value);
        }

        public static readonly DependencyProperty ProfileNameProperty = DependencyProperty.Register("ProfileName", typeof(string), typeof(Post));

        public string Likes
        {
            get => (string)GetValue(LikesProperty);
            set => SetValue(LikesProperty, value);
        }

        public static readonly DependencyProperty LikesProperty = DependencyProperty.Register("Likes", typeof(string), typeof(Post));

        public string Comments
        {
            get => (string)GetValue(CommentsProperty);
            set => SetValue(CommentsProperty, value);
        }

        public static readonly DependencyProperty CommentsProperty = DependencyProperty.Register("Comments", typeof(string), typeof(Post));

    }
}
